package com.light.gulimall.product.feign;

import com.light.common.pojo.ESPojo;
import com.light.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 远程调用ES模块
 */
@FeignClient(name = "gulimall-search", url = "http://localhost:88")
public interface ESRemoteServiceClient {

    @RequestMapping("/api/search/save")
    R productStatusUp(@RequestBody List<ESPojo> esPojos);
}
